﻿namespace SoEasyPlatform
{
    /// <summary>
    /// 属性标签，用于模版扩展
    /// </summary>
    public class TagProperty
    {
        [SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
        public int Id { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string UniueCode { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string Description { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string FieldName { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string FieldValue { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string ControlType { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string UrlKey { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string Url { get; set; }
        [SqlSugar.SugarColumn(IsNullable = true)] 
        //public string Ext1 { get; set; }
        //[SqlSugar.SugarColumn(IsNullable = true)]
        //public string Ext2 { get; set; }
        //[SqlSugar.SugarColumn(IsNullable = true)]
        //public string Ext3 { get; set; }
        //[SqlSugar.SugarColumn(IsNullable = true)]
        //public string Ext4 { get; set; }
        //[SqlSugar.SugarColumn(IsNullable =true)]
        //public string Ext5 { get; set; }
        public bool IsDeleted { get; set; }
        public TagProperty() { }
        public TagProperty(TagProperty p1) {
            Id= p1.Id;
            UniueCode= p1.UniueCode;
            Description= p1.Description;
            FieldName= p1.FieldName;
            FieldValue= p1.FieldValue;
            ControlType= p1.ControlType;
            UrlKey= p1.UrlKey;
            Url=p1.Url;
            IsDeleted= p1.IsDeleted;
        }
    }
}
